ci: skip dev/latest release on workflow-only changes#6083
Open
ale7714 wants to merge 1 commit into
Open
Conversation
Member
Author
|
i was aggressive in my other pr |
abe-winter
approved these changes
Jun 10, 2026
3c7329a to
fc41295
Compare
A push to main runs main.yml, which both tests and publishes a dev/latest release. We don't want to cut a dev release when a merge only touches CI workflow YAML, but we DO still want tests/lint and the license check to run. Add a `changes` job (dorny/paths-filter) and gate the build/deploy/droid/cli jobs on it. The release still runs for any non-workflow change OR for edits to the build/deploy workflows themselves, so deploy-logic changes get validated (per review feedback). It is skipped only when a push touches solely non-release workflow YAML (e.g. test, claude, labeler). The deploy jobs cascade-skip via their build `needs`; test and license_finder are left ungated. workflow_dispatch is unaffected (the gate short-circuits when event != 'push'). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fc41295 to
8effcec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A push to main runs main.yml, which both tests and publishes a dev/latest release. We don't want to cut a dev release when a merge only touches workflow YAML, but we DO still want tests/lint and the license check to run.
Add a
changesjob (dorny/paths-filter) that flags whether the push touched anything outside .github/workflows/**, and gate only the build/deploy/droid/cli jobs on it. The deploy jobs cascade-skip via their buildneeds. The test and license_finder jobs are left ungated so they always run. workflow_dispatch is unaffected (the gate short-circuits when event_name != 'push').